import request from '@/utils/request'


// 头像上传
export function avatarUpload(data) {
  return request({
    url: '/profile/avatar/upload',
    method: 'post',
    data
  })
}

export function UserInfoUpdate(data) {
  return request({
    url: '/profile/userInfo/update',
    method: 'post',
    data
  })
}

export function getUserInfo() {
  return request({
    url: '/profile/userInfo/all',
    method: 'get'
  });
}
